package com.yankelin.construction.dao.util;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

public class ReflectUtil {
	
	public static Class<?> getEntityClass(Class<?> c){
		Type type = c.getGenericSuperclass();
		ParameterizedType parameterizedType = (ParameterizedType)type;
		Type[] types = parameterizedType.getActualTypeArguments();
		return (Class<?>)types[0];
	}
	

}
